import instance from './interceptors'

export const getCars = () => {
    return instance.get('/api/car/getCars');
}

export const addCar = (data) => {
    return instance.post('/api/car/addCar',data);
}

export const editCar = (data) => {
    return instance.post('/api/car/editCar',data)
}

export const deleteCar = (data) => {
    return instance.post('/api/car/deleteCar',data)
}

export const getUsedCars = () => {
    return instance.get('/api/car/getUsedCars');
}

export const getPirce = (data) => {
    return instance.post('/api/car/getPrice',data);
}